<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="com.sanqing.po.Employee" %>
<%@ page import="com.sanqing.tool.DateUtil" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>人力资源管理系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">

</script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<base target="mainFrame"/>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
			<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left">
					<fieldset style="height:100%;">
				<legend>人员信息查看</legend>
				     <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
	<tr class="CTitle" >
		<td height="22" colspan="8" align="center" style="font-size:16px">人员信息列表</td>
	</tr>
	<tr bgcolor="#EEEEEE">
		<td width="10%" align="center" height="30">编号</td>
		<td width="10%" align="center" >姓名</td>
		<td width="10%" align="center" >性别</td>
		<td width="10%" align="center" >出生日期</td>
		<td width="10%" align="center" >联系电话</td>
		<td width="10%" align="center" >邮箱</td>
		<td width="10%" align="center" >创建日期</td>
		<td width="10%" align="center" >执行操作</td>
	 </tr>
	 <% 
	 List employees = (List)request.getAttribute("employees");
	 if(employees!=null&&employees.size()>0){
	 Iterator it = employees.iterator();
	 while(it.hasNext()){
	   Employee e = (Employee)it.next();
	 %>
	<tr bgcolor="#FFFFFF">
		<td height="22" align="center" ><%=e.getId() %>&nbsp;</td>
		<td height="22" align="center" ><%=e.getName() %>&nbsp;</td>
		<td height="22" align="center" ><%=e.getSex()?"男":"女"%>&nbsp;</td>
		<td height="22" align="center" ><%=DateUtil.parseToString(e.getBirthday(),DateUtil.yyyyMMdd)%>&nbsp;</td>
		<td height="22" align="center" ><%=e.getPhone() %>&nbsp;</td>
		<td height="22" align="center" ><%=e.getEmail() %>&nbsp;</td>
		<td height="22" align="center" ><%=DateUtil.parseToString(e.getCreatetime(),DateUtil.yyyyMMdd)%>&nbsp;</td>
		<td height="22" align="center" ><a href="employee.do?method=detail&id=<%=e.getId()%>">详细</a>&nbsp;<a href="employee.do?method=select&id=<%=e.getId()%>">修改</a>&nbsp;<a href="employee.do?method=delete&id=<%=e.getId()%>" target="_self">删除</a></td>
	</tr>
	<%}}else{ %>
    <tr  bgcolor="#FFFFFF">
		<td height="22" colspan="8" align="center" >对不起，暂时没有人员信息！！！</td>
	</tr>
	<%} %>
</table>
			 		 <br />
			 		 
				</fieldset>
					</td>
				</tr>
      </table>
</td>
</tr>
</table>
</body>
</html>

